I saw in your example you have 4 configurations for the core data. The entities AEntity and BEntity belongs to the Default, Cloud and CloudPublic.
I'm not sure, but I think it can be a problem to have the entries in 3 configurations and one configuration don't use "Used with CloudKit" and the two other using "Used with CloudKit".